package com.mes.service.jy;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.jy.TempmaMapper;
import com.mes.entity.jy.Queryjy;
import com.mes.entity.jy.Tempma;

/**
 * 物料线边库
 * @ClassName: TempmaServiceImpl 
 * @Description:
 * @Author jy
 * @Date 2018年3月15日 下午3:08:01 
 * @version 1.0
 */
@Service
@Transactional
public class TempmaServiceImpl implements TempmaService{

	@Resource
	private TempmaMapper tempmaMapper;

	@Override
	public List<Tempma> selectmakc(Queryjy queryjy) {
		return tempmaMapper.selectmakc(queryjy);
	}
	
	@Override
	public int createTempMa(Tempma tempma) {
		return tempmaMapper.createTempMa(tempma);
	}

	@Override
	public Integer countTempMa(Queryjy queryjy) {
		return tempmaMapper.countTempMa(queryjy);
	}

	@Override
	public Tempma selectTempMnumBymid(String mid) {
		return tempmaMapper.selectTempMnumBymid(mid);
	}

	@Override
	public void editMnumByid(Tempma tempma) {
		tempmaMapper.editMnumByid(tempma);
	}

	@Override
	public void deleteMa(Long id) {
		tempmaMapper.deleteMa(id);
	}

	@Override
	public Integer countmRnumer(Queryjy queryjy) {
		return tempmaMapper.countmRnumer(queryjy);
	}

	@Override
	public Integer countmCnumer(Queryjy queryjy) {
		return tempmaMapper.countmCnumer(queryjy);
	}

	@Override
	public int selectMakcByMid(String mid) {
		return tempmaMapper.selectMakcByMid(mid);
	}

}
